package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_place_clock")
@NoArgsConstructor
public class PlaceClockEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long placeId;

    public PlaceClockEntity(Long userId, Long placeId) {
        this.userId = userId;
        this.placeId = placeId;
    }
}
